using AutoMapper;
using HotelManageSystem.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace DotNetWebApi {
    public class AutoMapperProfile : Profile {
        public AutoMapperProfile() {
            CreateMap<AddUserDto,User>();
            CreateMap<User, AddUserDto>();
            CreateMap<PreOrder_UserWorkerRoom, AddPreOrderDto>();
            CreateMap<AddPreOrderDto, PreOrder_UserWorkerRoom>();
            CreateMap<CheckIn_UserWorkerRoom, AddCheckInInfoDto>();
            CreateMap<AddCheckInInfoDto, CheckIn_UserWorkerRoom>(); 
            CreateMap<Room, AddRoomDto>();
            CreateMap<AddRoomDto, Room>(); 
            CreateMap<Worker, AddWorkerDto>();
            CreateMap<AddWorkerDto, Worker>();


            CreateMap<GetUserDto, User>();
            CreateMap<User, GetUserDto>();
            CreateMap<GetWorkerDto, Worker>();
            CreateMap<Worker, GetWorkerDto>();
            CreateMap<GetRoomDto, Room>();
            CreateMap<Room, GetRoomDto>();
            CreateMap<单账单Dto, Bill>();
            CreateMap<Bill, 单账单Dto>();

            CreateMap<CheckIn_UserWorkerRoom, CheckIn_UserWorkerRoom>();

        }
    }
}